package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.AttendPunchCalibrationExample.E_CALIBRATION_METHOD;
import static org.jsola.hr.example.AttendPunchCalibrationExample.E_HIS_PUNCH_STATUS;
import static org.jsola.hr.example.AttendPunchCalibrationExample.E_HIS_PUNCH_TIME;
import static org.jsola.hr.example.AttendPunchCalibrationExample.E_PUNCH_RECORD_ID;
import static org.jsola.hr.example.AttendPunchCalibrationExample.E_REMARK;
import static org.jsola.hr.example.AttendPunchCalibrationExample.M_CALIBRATION_METHOD_MAX;
import static org.jsola.hr.example.AttendPunchCalibrationExample.M_PUNCH_RECORD_ID_MAX;
import static org.jsola.hr.example.AttendPunchCalibrationExample.M_REMARK_MAX;
import static org.jsola.hr.example.AttendPunchCalibrationExample.N_CALIBRATION_METHOD;
import static org.jsola.hr.example.AttendPunchCalibrationExample.N_HIS_PUNCH_STATUS;
import static org.jsola.hr.example.AttendPunchCalibrationExample.N_HIS_PUNCH_TIME;
import static org.jsola.hr.example.AttendPunchCalibrationExample.N_PUNCH_RECORD_ID;
import static org.jsola.hr.example.AttendPunchCalibrationExample.N_REMARK;

/**
 * 考勤打卡校准记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【考勤打卡校准记录表】的参数")
@Data
public class AttendPunchCalibrationUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_PUNCH_RECORD_ID, example = E_PUNCH_RECORD_ID)
    @Length(max = 32, message = M_PUNCH_RECORD_ID_MAX)
    private String punchRecordId;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_HIS_PUNCH_STATUS, example = E_HIS_PUNCH_STATUS)
    private Integer hisPunchStatus;

    @ApiModelProperty(notes = N_HIS_PUNCH_TIME, example = E_HIS_PUNCH_TIME)
    private Date hisPunchTime;

    @ApiModelProperty(notes = N_CALIBRATION_METHOD, example = E_CALIBRATION_METHOD)
    @Length(max = 32, message = M_CALIBRATION_METHOD_MAX)
    private String calibrationMethod;


}

